<?php
class IndexController extends AppController {
	public $name 	= 'Index';
	public $helpers = array('Html', 'Session');
	public $uses 	= array();
	
	public function beforeFilter() {
		parent::beforeFilter();
		$this->Auth->allow('index', 'language');
	}

	public function index() {
	}
	
	public function language($language) {
		switch ($language) {
			default:
				$this->Session->write('App.Language', 'eng');
				break;
			case 'rom':
				$this->Session->write('App.Language', 'rom');
				break;
		}
		$this->redirect('/');
	}

}
